<script type="text/javascript" src="includes/javascript/tiny.js"></script>
<script type="text/javascript" src="jquery/jquery-latest.js"></script>
<script type="text/javascript" src="jquery/jquery.validate.js"></script>
<script type="text/javascript" src="includes/javascript/frmregister.js"></script>
<script src="includes/javascript/jquery.validationEngine-en.js" type="text/javascript"></script>
<script src="includes/javascript/jquery.validationEngine.js" type="text/javascript"></script>
<link rel="stylesheet" href="css/validationEngine.jquery.css" type="text/css" media="screen" title="no title" charset="utf-8" />
<link rel="stylesheet" href="css/template.css" type="text/css" media="screen" title="no title" charset="utf-8" />
		

<script>	
$(document).ready(function() {
						  
	$("#add_expert").validationEngine()
});

</script>

<script type="text/javascript">
$(document).ready(function()
{
$("#category").change(function()
{
var subcat=$(this).val();
var dataString = 'subcat='+ subcat;

$.ajax
({
	
type: "POST",
url: "ajax_expert_subcat.php",
data: dataString,
cache: false,
success: function(html)
{
$("#eSubCategory").html(html);
} 
});

});
});
</script>

<script type="text/javascript">
	$(document).ready(function(){
   $("table#imgupload").hide();
  $("p#upload").click(function(){
  $("table#imgupload").show();
  });
});
</script>

<!--Add Products-->
<style>
	table tr .heading{
		text-align: left;	
	}
</style>

<div style="border: 1px solid #e1e0e0; height: 500px; margin: 10px;">
<div style="background-color: #f0efef; width: 100%; height: 30px;"><div style="padding: 5px; padding-left: 12px;">ADD EXPERT</div></div>
                        <form name="add_expert" id="add_expert" enctype="multipart/form-data" method="post" action="add_experts_process.php">
                            <div style="float:left; width:45%; margin: 10px;">
                            <table border="0" width="100%" cellspacing="0" cellpadding="2">						
                                
								<tr><td colspan="4" style="height:15px;"></td></tr>

								<tr>
                                    <td width="175" class="heading">Company Name:</td>
                                    <td><input  type="text" id="ecompanyName" name="ecompanyName" class="validate[required] text-input" style="width:170px; margin-bottom: 7px;"></td>                                   
                                </tr>
								                                <tr>
                                    <td class="heading">Company Address:</td>
                                    <td><textarea  type="text" name="ecompanyAdd" id="ecompanyAdd" class="validate[required] text-input" style="width:170px; margin-bottom: 7px;"></textarea>
                                    </td>
                                    
                                </tr>
								<tr>
                                    <td class="heading">Person In Charge/Owner:</td>
                                    <td><input  type="text" name="ePersonInCharge" id="ePersonInCharge" class="validate[required] text-input" style="width:170px; margin-bottom: 7px;"><!-- change class -->
                                    </td>   
                                </tr>		
                                <tr>
                                    <td class="heading">Phone:</td>
									<td>
										<input type="text" name="ephcode" id="ephcode" class="validate[required,custom[phone]] text-input" onblur="if(this.value=='') {this.value = 'std code';}" onfocus="if (this.value=='std code') {this.value = '';}" value="std code" style="width: 53px; margin-bottom: 7px;">

										<input  type="text" name="ephone" id="ephone" class="validate[required,custom[phone]] text-input" onblur="if(this.value=='') {this.value = 'phone number';}" onfocus="if (this.value=='phone number') {this.value = '';}" value="phone number" style="width:106px; margin-bottom: 7px;">
                                    </td>   
                                </tr>				
                                
                                <tr>
                                    <td class="heading"> Mobile:</td>
                                    <td>

										<input type="text" name="emobstdCode" id="emobstdCode"  style="width: 53px; " class="validate[required,custom[phone]] text-input" onblur="if(this.value=='') {this.value = 'std code';}" onfocus="if (this.value=='std code') {this.value = '';}" value="std code">

										<input  type="text" name="emobile" id="emobile" class="validate[required,custom[phone]] text-input" onblur="if(this.value=='') {this.value = 'mobile number';}" onfocus="if (this.value=='mobile number') {this.value = '';}" value="mobile number"style="width:106px; margin-bottom: 7px;" >

                                    </td>   
                                </tr>	
								
								<tr>
                                     <td class="heading">Residence No:</td>
                                    <td>
										<input type="text" name="eresphcode" id="eresphcode"  onblur="if(this.value=='') {this.value = 'std code';}" onfocus="if (this.value=='std code') {this.value = '';}" value="std code" style="width: 53px; margin-bottom: 7px;">

										<input type="text" rows="3" cols="25" name="expert_res_no" id="expert_res_no" onblur="if(this.value=='') {this.value = 'phone number';}" onfocus="if (this.value=='phone number') {this.value = '';}" value="phone number" style="width:106px; margin-bottom: 7px;">
                                    </td>
                                </tr>                                  

                                      
                                <tr>
                                    
                                    <td class="heading">User Name:</td>
                                    <td><input  type="text" name="eusername" id="eusername" class="validate[required] text-input" style="width:170px; margin-bottom: 7px;"></td><!-- change class -->
                                </tr>                                                                                               
								<tr>
									<td class="heading">Password:</td>
                                    <td><input  type="password" name="epwd" id="epwd" class="validate[required] text-input" style="width:170px; margin-bottom: 7px;">
									</td><!-- change class -->
								</tr>
								
								<tr>
									<td class="heading">Expert Type:</td>
                                    <td>
										<select name="ecategory" id="ecategory" style="width:176px; margin-bottom: 7px;" class="validate[required]">
											<option selected="selected">select</option>
										<?php
											$sql1 = mysql_query('SELECT * FROM expert_cat');
											while($result1 = mysql_fetch_array($sql1))
											{
										?>
											<option value="<?php echo $result1['expert_cat_id']?>">
												<?php echo $result1['expert_cat']?>
											</option>
										<?php
											}										
										?>
										</select>
									</td><!-- change class -->
								</tr> 

								<tr>
								 <td  class="heading">Expert Category:</td>
                                     <td><div style="width:170px; margin-bottom: 7px;"><?php echo AGetExpertCategories();?></div></td> 
								</tr>
				
								<tr>
								 <td  class="heading">Expert Sub-Category:</td>
                                     <td><div style="width:170px; margin-bottom: 7px;"><?php echo AGetExpertSubCategories();?></div></td> 
								</tr>

                               
                            </table>
							</div>

							<div style="float:left; width:48%;">
                            <table border="0" width="100%" cellspacing="0" cellpadding="2">						
                                <tr><td colspan="4" style="height:15px;"></td></tr>
								
                                <tr>
                                     <td class="heading">Website Name (If any):</td>
                                    <td><input type="text" rows="3" cols="25" name="ewebsiteName" id="ewebsiteName" style="width:170px; margin-bottom: 7px;">
                                    </td>
                                    
                                </tr>                                  
                                <tr>
                                    <td class="heading">Product Dealing:</td>
									<td><input  type="text" name="eprodDealing" id="eprodDealing" class="subcategory" class="validate[required]"style="width:170px; margin-bottom: 7px;"><!-- change class -->
                                    </td>   
                                </tr>				
                                
								<tr>
									<td class="heading">Country:</td>
									<td><?php echo AGetCountry();?></td>
								</tr>

                                <tr>
                                    <td class="heading" valign="top">Are you willing to Supply Equipment:</td>
                                    <td>
										<div style="margin-bottom: 7px;"><input type="checkbox" name="vcheck[]" id="local" Value="Local" >Local<br /></div>
											<div style="margin-bottom: 7px;"><input type="checkbox" name="vcheck[]" id="national" Value="National">National<br/></div>
											<div style="margin-bottom: 7px;"><input type="checkbox" name="vcheck[]" id="international" Value="International">International</div>
									</td><!-- change class -->
                                </tr>                                                                                               
								<tr>
								<td class="heading">Companies/Clients Served (If u wish to disclosure):</td>
                                    <td><input type="text" name="ecomClientsServed" id="ecomClientsServed" class="category" class="validate[required]"style="width:170px;"></td><!-- change class -->

								</tr>
          
                                <tr><td colspan="2" style="height:10px;"></tr>   
								
								<tr>
								 <td class="heading">Your Company&#39;s USP (Unique Selling Point):</td>
                                 <td><input type="text" name="eUps" id="eUps" style="width:170px; margin-bottom: 7px;"></td>
								</tr>

								<tr>
								 <td class="heading">Company/Owners Experience (Years):</td>
								 <td><input type="text" name="ecomOwnersExprenc" id="ecomOwnersExprenc"style="width:170px; margin-bottom: 7px;" ></td>
								</tr>

								<tr>
								 <td class="heading">Awards & accolade:</td>
								 <td><input type="text" name="awardsAccolade" id="awardsAccolade" style="width:170px; margin-bottom: 7px;"></td>
								</tr>

								<tr>
								 <td class="heading">Company Information:</td>
								 <td>
									<textarea type="text" name="compInfo" id="compInfo" style="width:170px; margin-bottom: 7px;"></textarea>
								</td>
								</tr>

								 <tr><td colspan="2" style="height:10px;"></tr>

                                    <td colspan="3" align="right"><input type="submit" name="submit" value="Submit" onClick="return validate();" class="sub-butt"/></td>
                                </tr>

                            </table>
							</div>

                        </form>
                        <!--End Add Vendors-->
         </div>
        <!--end Vendors-->